package com.ruoyi.common.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;

public class JSONUtil {
	public static String toJSONString(Object object) {
		String text = JSON.toJSONString(object, SerializerFeature.WriteMapNullValue,
				SerializerFeature.WriteDateUseDateFormat);
		return text;
	}

	public static JSONObject parseObject(String json) {
		return JSON.parseObject(json);
	}
}
